﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostUser.aspx.cs" Inherits="Web.PostUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>管理用户</title>
    <link href="css/minicss.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id='block' class="postuser">
    <div id='blocktitle'>编辑用户信息</div>
    <div id='blockcontent'>
    <div class="formdiv"><label for="Name">姓&nbsp;&nbsp;名：</label><asp:TextBox ID="Name" runat="server"></asp:TextBox></div>
    <div class="formdiv"><label for="PassWord">密&nbsp;&nbsp;码：</label><asp:TextBox ID="PassWord" runat="server" 
            TextMode="Password"></asp:TextBox></div>
            <div class="formdiv"><label for="Email">E-mail：</label><asp:TextBox ID="Email" runat="server"></asp:TextBox></div>
    <div class="formdiv"><label for="Status">状&nbsp;&nbsp;态：</label><asp:DropDownList ID="Status" runat="server">
        </asp:DropDownList>
    </div>
    <div class="formdiv"><label for="RoleId">权限组：</label><asp:DropDownList ID="RoleId" runat="server">
        </asp:DropDownList>
    </div>
    <div id='HideDiv'>
    <div class="formdiv">可审核的科目</div>
    <div  class="formdiv">
        <asp:CheckBoxList ID="SubjectList" runat="server" RepeatDirection="Horizontal" RepeatColumns="5" RepeatLayout="Table" Width="500">
        </asp:CheckBoxList>
    </div>
    <div class="formdiv">可审核的题型</div>
    <div  class="formdiv">
        <asp:CheckBoxList ID="QuestionTypeList" runat="server" RepeatDirection="Horizontal" RepeatColumns="5" RepeatLayout="Table" Width="500">
        </asp:CheckBoxList>
    </div>
    <div class="formdiv">可审核的教师组</div>
    <div  class="formdiv">
        <asp:CheckBoxList ID="RoleList" runat="server" RepeatDirection="Horizontal" RepeatColumns="3" RepeatLayout="Table" Width="550">
        </asp:CheckBoxList>
    </div>
    </div>
    <div class="formdiv"><label for="IdCard">身份证：</label><asp:TextBox ID="IdCard" runat="server" Width="200px"></asp:TextBox></div>
    
    <div class="formdiv"><label for="Sex">性别：</label><asp:DropDownList ID="Sex" runat="server">
        <asp:ListItem Selected="True" Value="1">男</asp:ListItem>
        <asp:ListItem Value="2">女</asp:ListItem>
        </asp:DropDownList>
    </div>
    <div class="formdiv"><label for="Age">年龄：</label><asp:TextBox ID="Age" runat="server" Width="50px"></asp:TextBox></div>
    <div class="formdiv"><label for="Address">联系地址：</label><asp:TextBox ID="Address" runat="server" Width="300px"></asp:TextBox></div>
    <div class="formdiv"><label for="Postcode">邮政编码：</label><asp:TextBox ID="Postcode" runat="server" Width="80px"></asp:TextBox></div>
    <div class="formdiv"><label for="Tel">联系电话：</label><asp:TextBox ID="Tel" runat="server" Width="200px"></asp:TextBox></div>
    <div class="formdiv"><label for="SchoolId">任教学校：</label><asp:DropDownList ID="SchoolId" runat="server">
        </asp:DropDownList>
    </div>
    <div class="formdiv"><label for="Caste">职称：</label><asp:DropDownList ID="Caste" runat="server">
        <asp:ListItem Value="1">教师</asp:ListItem>
        <asp:ListItem Value="2">特级教师</asp:ListItem>

        </asp:DropDownList>
    </div>
    <div class="formdiv"><label for="Business">职务：</label><asp:DropDownList ID="Business" runat="server">
            <asp:ListItem Selected="True" Value="1">教师</asp:ListItem>
        <asp:ListItem Value="2">年级主任</asp:ListItem>
        <asp:ListItem Value="3">教务主任</asp:ListItem>
        <asp:ListItem Value="4">副校长</asp:ListItem>
        <asp:ListItem Value="5">校长</asp:ListItem>
        </asp:DropDownList>
    </div>
    </div>
    <div id="blocktitle">个人简介</div>
    <div id="blockcontent"><asp:TextBox ID="Intro" runat="server" Rows="10" 
            TextMode="MultiLine" Width="99%"></asp:TextBox></div>
    <div id='blockfloor'>
        <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click" /></div>
    </div>
    </form>
    <script type="text/javascript">
        $("#RoleId").change(function() {
            if ($("#RoleId :selected").text() == "初审专家" || $("#RoleId :selected").text() == "终审专家") {
                $("#HideDiv").show();
            }
            else {
                $("#HideDiv").hide();
            }
        });
        if ($("#RoleId :selected").text() == "初审专家" || $("#RoleId :selected").text() == "终审专家") {
            $("#HideDiv").show();
        }
        else {
            $("#HideDiv").hide();
        }
    </script>
</body>
</html>
